{layout name="layout/layout" /}
<style>
/* .list_content {
    height: 60px;
}
.list_address{
    position: absolute;
    top: 50%;
    transform: translate(0,-50%);
} */
</style>
<link rel="stylesheet" href="__STATIC__/index/css/reset.css">
<script src="__STATIC__/index/js/easySlider.js"></script>
<div class="register_head">
    <img id="back" src="__STATIC__/index/img/return.png">
    <p>施工列表图</p>

</div>
<div class="main">
    <div id="slider" style="width: 100%">
        <ul class="slides">
            {foreach $banner as $k=>$vo}
            <li><img width="100%" height="140px" src="{$vo.src}"></li>
            {/foreach}
         </ul>
    </div>
    <div class="integral_title">项目列表</div>
    {if($projects)}
    {foreach $projects as $vo}
        <a href="{:Url('index/project/details',['opinion_id'=>$vo->id,'project_name'=>$vo->address])}">
            <div class="list_project" style="position:relative">
                <div class="list_content">
                    <p class="list_address" style="margin-top: 10px 0 10px;"> <?php echo substr($vo['address'],0,strlen($vo['address'])-4); ?>*号 </p>
                </div>
                <div class="list_result1">
                    <img src="__STATIC__/index/img/edit1.png" style="position: absolute;top: 50%;transform: translate(0,-50%);">
                </div>
            </div>
        </a>

    {/foreach}
    {/if}
</div>

<script>
  // 取消提示的http地址显示
    window.alert = function(name) {
        var iframe = document.createElement("IFRAME");
        iframe.style.display = "none";
        iframe.setAttribute("src", 'data:text/plain,');
        document.documentElement.appendChild(iframe);
        window.frames[0].window.alert(name);
        iframe.parentNode.removeChild(iframe);
    }
    $(function(){
        $("#back").click(function(){
            window.history.go(-1);
        });
    })
</script>
<script>
    $(function() {
        $("#slider").easySlider( {
            slideSpeed: 500,
            autoSlide: true,
            paginationSpacing: "15px",
            paginationDiameter: "10px",
            paginationPositionFromBottom: "0px",
            slidesClass: ".slides",
            controlsClass: ".controls",
            paginationClass: ".pagination"                  
        });
    });
</script>
